package com.cz.ssyx.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cz.ssyx.model.order.PaymentInfo;

import java.util.Map;

public interface PaymentInfoService extends IService<PaymentInfo> {
    //根据订单编号获取支付记录
    PaymentInfo getPaymentInfoByOrderNo(String orderNo);

    //保存支付记录
    PaymentInfo savePaymentInfo(String orderNo);

    //支付成功后要做的处理
    void paySuccess(String outTradeNo, Map<String, String> resultMap);
}
